import { selClothesTimes } from '../services/timeMag'


export default {

  namespace: 'timeManager',

  state: {
      timeMag:{}
  },



  effects: {
    *selTimes({ payload }, { call, put }) {  // 查询取衣时间
      const resp = yield call(selClothesTimes,payload)
      yield put(
        { type: 'selT' ,
          state: {
            timeMag: resp.data.data
          }
        }
      );
      return resp;
    },
  },

  reducers: {
    selT(state, action) {
      return { ...state, ...action.state };
    },
  },

};
